package com.ktgj.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 购物车商品对象 mall_cart_product
 * 
 * @author ruoyi
 * @date 2022-05-30
 */
public class MallCartProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long cartProductId;

    /** 购物车编号 */
    @Excel(name = "购物车编号")
    private Long cartId;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Long productId;

    /** 规格编号 */
    @Excel(name = "规格编号")
    private Long productSpecId;

    /** $column.columnComment */
    @Excel(name = "规格编号")
    private Long activityId;

    /** $column.columnComment */
    @Excel(name = "规格编号")
    private Long activityTypeId;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 添加：1，减少：2，删除：3 */
    @Excel(name = "添加：1，减少：2，删除：3")
    private Long type;

    public void setCartProductId(Long cartProductId) 
    {
        this.cartProductId = cartProductId;
    }

    public Long getCartProductId() 
    {
        return cartProductId;
    }
    public void setCartId(Long cartId) 
    {
        this.cartId = cartId;
    }

    public Long getCartId() 
    {
        return cartId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductSpecId(Long productSpecId) 
    {
        this.productSpecId = productSpecId;
    }

    public Long getProductSpecId() 
    {
        return productSpecId;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setActivityTypeId(Long activityTypeId) 
    {
        this.activityTypeId = activityTypeId;
    }

    public Long getActivityTypeId() 
    {
        return activityTypeId;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartProductId", getCartProductId())
            .append("cartId", getCartId())
            .append("productId", getProductId())
            .append("productSpecId", getProductSpecId())
            .append("activityId", getActivityId())
            .append("activityTypeId", getActivityTypeId())
            .append("number", getNumber())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
